package com.xzl.time.service;

import com.github.pagehelper.PageInfo;
import com.xzl.time.pojo.Comment;
import com.xzl.time.pojo.vo.AddCommentParamVo;

import java.util.List;

public interface ICommentService {
     Comment findById(String id);

     List<Comment> findAll();

     AddCommentParamVo save(AddCommentParamVo comment);

     void update(Comment comment);

     void deleteById(String id, String userName) ;

     PageInfo<Comment> findByarticleId(int current, int size, String articleId);

     PageInfo<Comment> findByCeilingCommentId(int current, int size, String ceilingCommentId);

     void fabulous(String commentId);
}